//
//  LeftItem.m
//  PCDemo
//
//  Created by Mac on 16/7/14.
//  Copyright © 2016年 FanShuHan. All rights reserved.
//

#import "LeftItem.h"

@implementation LeftItem

-(instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {//一定要调回父类的方法
        //字典转模型
        self.icon = dict[@"icon"];
        self.name = dict[@"name"];
    }
    return self;
}

+(instancetype)leftWithDict:(NSDictionary *)dict
{
    return [[self alloc] initWithDict:dict];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

@end
